package com.lb.activity.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;

/**
 * @author liubin
 */
@ApiModel(value = "com-lb-activity-po-Permission")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Permission implements Serializable {
    private static final long serialVersionUID = 6785803356797026633L;
    /**
     * id
     */
    @Id
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型")
    private Integer type;

    /**
     * url
     */
    @ApiModelProperty(value = "url")
    private String url;

    /**
     * 权限code
     */
    @ApiModelProperty(value = "权限code")
    private String percode;

    /**
     * 父ID
     */
    @ApiModelProperty(value = "父ID")
    private Long parentid;

    /**
     * 父权限code
     */
    @ApiModelProperty(value = "父权限code")
    private String parentcode;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private String sort;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**
     *
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     *
     */
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     *
     */
    @ApiModelProperty(value = "图标")
    private String icon;

}
